﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using LibDll;
using System.Windows.Forms;
using IYASAKANet_SXDY;


namespace CAKY_Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnQuery_Click(object sender, EventArgs e)
        {
            NetImplementRead netImplementRead = new NetImplementRead();
            txtResult.Text = netImplementRead.QueryObject(txtPara1.Text, txtPara2.Text);
        }

        private void btnWrite_Click(object sender, EventArgs e)
        {
            NetImplementWrite netImplementWrite = new NetImplementWrite();
            txtResult.Text = netImplementWrite.WriteObject("19W22", txtPara1.Text,  txtPara2.Text);
        }

        private void btnTestCB_Click(object sender, EventArgs e)
        {
            //NetImplementWrite netImplementWrite = new NetImplementWrite();
            //var vRet = netImplementWrite.UploadProcessData(txtPara1.Text, txtPara2.Text);

            //if(vRet.IsSuccess)
            //{
            //    txtResult.Text = vRet.Message;
            //}
           // dataOperation.ce();
        }
    }
}
